import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class Test111 {

	public static void main(String[] args) throws Exception {
		Connection connection = DriverManager.getConnection("jdbc:mysql://192.168.9.110:63306/test.sx.klx.com", "gtiles", "Klx1234!");
		PreparedStatement prepareStatement = connection.prepareStatement("/*!mycat:schema=test.sx.klx.com */ SELECT uuid() FROM dual");
		System.out.println(connection.getMetaData().getDatabaseProductName());
		for (int i = 0; i < 1000; i++) {
			ResultSet executeQuery = prepareStatement.executeQuery();
			while(executeQuery.next()) {
				System.out.println(executeQuery.getString(1));
			}
		}
	}
}
